<?php
echo '<pre>';
echo $_SERVER['REQUEST_METHOD'], '<br>';
print_r($_POST);
echo $_POST['id'], $_POST['name'], '<br>';
print_r(getallheaders());